package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchSiteComprehensiveWaterQualityQualifiedRateStatsMapper;
import com.ruoyi.system.domain.DispatchSiteComprehensiveWaterQualityQualifiedRateStats;
import com.ruoyi.system.service.IDispatchSiteComprehensiveWaterQualityQualifiedRateStatsService;

/**
 * 站点综合水质合格率统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchSiteComprehensiveWaterQualityQualifiedRateStatsServiceImpl implements IDispatchSiteComprehensiveWaterQualityQualifiedRateStatsService 
{
    @Autowired
    private DispatchSiteComprehensiveWaterQualityQualifiedRateStatsMapper dispatchSiteComprehensiveWaterQualityQualifiedRateStatsMapper;

    /**
     * 查询站点综合水质合格率统计
     * 
     * @param siteComprehensiveWaterQualityQualifiedRateStatsId 站点综合水质合格率统计主键
     * @return 站点综合水质合格率统计
     */
    @Override
    public DispatchSiteComprehensiveWaterQualityQualifiedRateStats selectDispatchSiteComprehensiveWaterQualityQualifiedRateStatsBySiteComprehensiveWaterQualityQualifiedRateStatsId(Long siteComprehensiveWaterQualityQualifiedRateStatsId)
    {
        return dispatchSiteComprehensiveWaterQualityQualifiedRateStatsMapper.selectDispatchSiteComprehensiveWaterQualityQualifiedRateStatsBySiteComprehensiveWaterQualityQualifiedRateStatsId(siteComprehensiveWaterQualityQualifiedRateStatsId);
    }

    /**
     * 查询站点综合水质合格率统计列表
     * 
     * @param dispatchSiteComprehensiveWaterQualityQualifiedRateStats 站点综合水质合格率统计
     * @return 站点综合水质合格率统计
     */
    @Override
    public List<DispatchSiteComprehensiveWaterQualityQualifiedRateStats> selectDispatchSiteComprehensiveWaterQualityQualifiedRateStatsList(DispatchSiteComprehensiveWaterQualityQualifiedRateStats dispatchSiteComprehensiveWaterQualityQualifiedRateStats)
    {
        return dispatchSiteComprehensiveWaterQualityQualifiedRateStatsMapper.selectDispatchSiteComprehensiveWaterQualityQualifiedRateStatsList(dispatchSiteComprehensiveWaterQualityQualifiedRateStats);
    }

    /**
     * 新增站点综合水质合格率统计
     * 
     * @param dispatchSiteComprehensiveWaterQualityQualifiedRateStats 站点综合水质合格率统计
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchSiteComprehensiveWaterQualityQualifiedRateStats(DispatchSiteComprehensiveWaterQualityQualifiedRateStats dispatchSiteComprehensiveWaterQualityQualifiedRateStats)
    {
        return dispatchSiteComprehensiveWaterQualityQualifiedRateStatsMapper.insertDispatchSiteComprehensiveWaterQualityQualifiedRateStats(dispatchSiteComprehensiveWaterQualityQualifiedRateStats);
    }

    /**
     * 修改站点综合水质合格率统计
     * 
     * @param dispatchSiteComprehensiveWaterQualityQualifiedRateStats 站点综合水质合格率统计
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchSiteComprehensiveWaterQualityQualifiedRateStats(DispatchSiteComprehensiveWaterQualityQualifiedRateStats dispatchSiteComprehensiveWaterQualityQualifiedRateStats)
    {
        return dispatchSiteComprehensiveWaterQualityQualifiedRateStatsMapper.updateDispatchSiteComprehensiveWaterQualityQualifiedRateStats(dispatchSiteComprehensiveWaterQualityQualifiedRateStats);
    }

    /**
     * 批量删除站点综合水质合格率统计
     * 
     * @param siteComprehensiveWaterQualityQualifiedRateStatsIds 需要删除的站点综合水质合格率统计主键
     * @return 结果
     */
    @Override
    public int deleteDispatchSiteComprehensiveWaterQualityQualifiedRateStatsBySiteComprehensiveWaterQualityQualifiedRateStatsIds(Long[] siteComprehensiveWaterQualityQualifiedRateStatsIds)
    {
        return dispatchSiteComprehensiveWaterQualityQualifiedRateStatsMapper.deleteDispatchSiteComprehensiveWaterQualityQualifiedRateStatsBySiteComprehensiveWaterQualityQualifiedRateStatsIds(siteComprehensiveWaterQualityQualifiedRateStatsIds);
    }

    /**
     * 删除站点综合水质合格率统计信息
     * 
     * @param siteComprehensiveWaterQualityQualifiedRateStatsId 站点综合水质合格率统计主键
     * @return 结果
     */
    @Override
    public int deleteDispatchSiteComprehensiveWaterQualityQualifiedRateStatsBySiteComprehensiveWaterQualityQualifiedRateStatsId(Long siteComprehensiveWaterQualityQualifiedRateStatsId)
    {
        return dispatchSiteComprehensiveWaterQualityQualifiedRateStatsMapper.deleteDispatchSiteComprehensiveWaterQualityQualifiedRateStatsBySiteComprehensiveWaterQualityQualifiedRateStatsId(siteComprehensiveWaterQualityQualifiedRateStatsId);
    }
}
